﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Constructor
{
    class Girl
    {
        private string name;
        private int age;
        private uint QQ;

        public Girl(string name, int age, uint QQ)
        {
            this.name = name;
            this.age = age;
            this.QQ = QQ;
        }
        
        public void GirlInfo()
        {
            Console.WriteLine("女孩姓名:"+this.name);
            Console.WriteLine("女孩年龄:"+this.age);
            Console.WriteLine("女孩qq:"+this.QQ);
        }

        //析构函数
        ~Girl()
        {
            Console.WriteLine("我听说{0}长得可漂亮啦",name);
        }
    }
}
